package mrtran.iti.vn;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class GameonepieceActivity extends Activity implements OnClickListener {
	private Button play, option, more, exit;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		play = (Button) findViewById(R.id.play);
		play.setOnClickListener(this);
		option = (Button) findViewById(R.id.option);
		option.setOnClickListener(this);
		more = (Button) findViewById(R.id.more);
		more.setOnClickListener(this);
		exit = (Button) findViewById(R.id.exit);
		exit.setOnClickListener(this);
	}

	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.play:
			Intent intent = new Intent(getBaseContext(), Play.class);
			startActivity(intent);
			break;
		case R.id.option:
			Intent intent1 = new Intent(getBaseContext(), Option.class);
			startActivity(intent1);
			break;

		case R.id.more:
			Intent intent2 = new Intent(getBaseContext(), More.class);
			startActivity(intent2);
			break;
		case R.id.exit:
			finish();
			
			break;
		default:
			break;

		}

	}
}